Skip to content

Conversation

@malkovitc
Copy link

Summary

Fixes #472

Optimize MessageDeduplicator for better performance with large message volumes.

Test plan

  • Verify deduplication still works correctly
  • Test with high message volumes
  • Check memory usage improvements

🤖 Generated with Claude Code

evgeniy.chernomortsev and others added 2 commits December 9, 2025 18:48
- Make Entry struct Equatable for better testability
- Remove down to 75% of maxCount instead of fixed 100 items for better
  amortization of cleanup cost
- Reuse Date instance to reduce allocations in isDuplicate()
- Add documentation comments for public methods
- Improve memory capacity management in cleanup()
@jackjackbits jackjackbits merged commit f71bd50 into permissionlesstech:main Jan 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: optimize MessageDeduplicator performance and memory management

2 participants